package com.usian.scheduled;

import com.usian.service.StudentService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

public class MyJob implements Job {

    @Autowired
    private StudentService studentService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        studentService.testCorn();
        System.out.println("定时任务执行的内容...."+new Date());
    }
}
